//- Copyright (C) 2023 Beijing Huaxia Chunsong Technology Co., Ltd. 
//- <https://www.chatopera.com>, Licensed under the Chunsong Public 
//- License, Version 1.0  (the "License"), https://docs.cskefu.com/licenses/v1.html
//- Unless required by applicable law or agreed to in writing, software
//- distributed under the License is distributed on an "AS IS" BASIS,
//- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//- See the License for the specific language governing permissions and
//- limitations under the License.
//- Copyright (C) 2018-Jun. 2023 Chatopera Inc, <https://www.chatopera.com>
//- Licensed under the Apache License, Version 2.0
//- http://www.apache.org/licenses/LICENSE-2.0
include /mixins/client.mixin.pug

.uk-layui-form
    .box
        .box-body
            table.layui-table(lay-skin="line")
                thead
                    tr.design-sortable-tr
                        th 用户名
                        th 终端/系统/浏览器
                        th 访问时间
                        th 离开时间
                        th 地域
                        th 标题
                tbody
                    if traceHisList && traceHisList.content && !traceHisList.content.empty()
                        for traceHis in traceHisList.content
                            tr.tdHasContorllor.design-dropable-td
                                td.first_td_head= traceHis.username
                                td.ukefu-online-client
                                    +device(traceHis.mobile)
                                    |
                                    +opersystem(traceHis.ostype)
                                    |  #{traceHis.browser}
                                td= pugHelper.formatDate('yyyy-MM-dd HH:mm:ss', traceHis.createtime)
                                td= pugHelper.formatDate('yyyy-MM-dd HH:mm:ss', traceHis.updatetime)
                                td= traceHis.country
                                td
                                    a(href=traceHis.url, target="_blank", title=traceHis.title)= traceHis.title

                    else
                        tr
                            td(colspan="20", style="height:400px;")
                                .ukefu-empty(style="background: none")
                                    i.layui-icon 
                                    div 没有访问轨迹信息
    .layui-form-button
        .layui-button-block
            button.layui-btn(lay-submit="", lay-filter="formDemo", onclick="layer.close(layerwin);") 关闭
